package com.example.spring5.AOP.AOP操作;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AOP操作_基于AspectJ配置文件 {
    static ApplicationContext context = new ClassPathXmlApplicationContext("AOP.xml");

    public static void main(String[] args) {
        context.getBean("AspectJ_xml主",AspectJ_xml主.class).get();
    }
}

class AspectJ_xml主{
    public void get(){
        System.out.println("主方法");
    }

}

class AspectJ_xml副{
    public void getA(){
        System.out.println("getA");
    }
    public void getB(){
        System.out.println("getB");
    }
    public void getC(){
        System.out.println("getC");
    }
    public void getD(){
        System.out.println("getD");
    }
    public void getE(){
        System.out.println("getE");
    }

}
